using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class PartnerInfo
    {
        #region CONSTRUCTORS
        public PartnerInfo()
        {

            this.m_partnerID = Util.NULL_INT;
            this.m_partnerName = Util.NULL_STRING;
            this.m_partnerCode = Util.NULL_STRING;
            this.m_commandCode = Util.NULL_STRING;
            this.m_serviceId = Util.NULL_STRING;
            this.m_status = false;
        }
        public PartnerInfo(int partnerID, string partnerName, string partnerCode, string commandCode, string serviceId, bool status)
        {

            this.m_partnerID = partnerID;
            this.m_partnerName = partnerName;
            this.m_partnerCode = partnerCode;
            this.m_commandCode = commandCode;
            this.m_serviceId = serviceId;
            this.m_status = status;
        }
        public PartnerInfo(DataRow dRow)
        {

            this.m_partnerID = (int)Util.ReplaceDBNullTo(dRow["PartnerID"], Util.NULL_INT);
            this.m_partnerName = Util.ReplaceDBNullTo(dRow["PartnerName"], Util.NULL_STRING).ToString();
            this.m_partnerCode = Util.ReplaceDBNullTo(dRow["PartnerCode"], Util.NULL_STRING).ToString();
            this.m_commandCode = Util.ReplaceDBNullTo(dRow["CommandCode"], Util.NULL_STRING).ToString();
            this.m_serviceId = Util.ReplaceDBNullTo(dRow["ServiceID"], Util.NULL_STRING).ToString();
            this.m_status = false;
        }
        #endregion

        #region ATTRIBUTES
        private int m_partnerID;
        private string m_partnerName;
        private string m_partnerCode;
        private string m_commandCode;
        private string m_serviceId;
        private bool m_status;
        #endregion

        #region PROPERTIES
        public int PartnerID
        {
            get
            {
                return this.m_partnerID;
            }
            set
            {
                this.m_partnerID = value;
            }
        }

        public string PartnerName
        {
            get
            {
                return this.m_partnerName;
            }
            set
            {
                this.m_partnerName = value;
            }
        }

        public string PartnerCode
        {
            get
            {
                return this.m_partnerCode;
            }
            set
            {
                this.m_partnerCode = value;
            }
        }

        public string CommandCode
        {
            get
            {
                return this.m_commandCode;
            }
            set
            {
                this.m_commandCode = value;
            }
        }

        public string ServiceID
        {
            get
            {
                return this.m_serviceId;
            }
            set
            {
                this.m_serviceId = value;
            }
        }

        public bool Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}